package vip.ifmm.lehouse.user.service.api.mock;

import vip.ifmm.lehouse.common.dto.ServerResponse;
import vip.ifmm.lehouse.common.enums.CommonStatus;
import vip.ifmm.lehouse.user.service.api.UserRegisterService;

/**
 * 用户注册服务熔断或降级处理类
 *
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/06/16 21:26:34</p>
 */
public class UserRegisterServiceMock implements UserRegisterService {

    @Override
    public ServerResponse<Object> register(String code, String email, String password) {
        return ServerResponse.response(CommonStatus.SERVICE_IS_UNAVAILABLE);
    }

    @Override
    public ServerResponse<Boolean> isEmailUsed(String email) {
        return ServerResponse.response(CommonStatus.SERVICE_IS_UNAVAILABLE);
    }

    @Override
    public ServerResponse<Object> sendRegisterCode(String email) {
        return ServerResponse.response(CommonStatus.SERVICE_IS_UNAVAILABLE);
    }
}
